package com.zzb.projectfactory.framework.mysqlexplain.entity;

import com.zzb.projectfactory.framework.autodoc.annotation.AutoDocField;

import javax.persistence.Column;

/**
 * mysqlExplain出来后的表结构
 * Created by zhangzhenbin on 17-3-9.
 */
public class MysqlExplain {
    @Column(name = "id")
    @AutoDocField(value = "id")
    private String id;
    @Column(name = "select_type")
    @AutoDocField(value = "select_type")
    private String selectType;
    @Column(name = "table")
    @AutoDocField(value = "table")
    private String table;
    @Column(name = "partitions")
    @AutoDocField(value = "partitions")
    private String partitions;
    @Column(name = "type")
    @AutoDocField(value = "type")
    private String type;
    @Column(name = "possible_keys")
    @AutoDocField(value = "possible_keys")
    private String possibleKeys;
    @Column(name = "key")
    @AutoDocField(value = "key")
    private String key;
    @Column(name = "key_len")
    @AutoDocField(value = "key_len")
    private String keyLen;
    @Column(name = "ref")
    @AutoDocField(value = "ref")
    private String ref;
    @Column(name = "rows")
    @AutoDocField(value = "rows")
    private String rows;
    @Column(name = "filtered")
    @AutoDocField(value = "filtered")
    private String filtered;
    @Column(name = "Extra")
    @AutoDocField(value = "Extra")
    private String extra;

    /*----------------------get set 方法----------------------*/
    public String getId() { return id; }
    public void setId(String id) { this.id = id; }
    public String getSelectType() { return selectType; }
    public void setSelectType(String selectType) { this.selectType = selectType; }
    public String getTable() { return table; }
    public void setTable(String table) { this.table = table; }
    public String getPartitions() { return partitions; }
    public void setPartitions(String partitions) { this.partitions = partitions; }
    public String getType() { return type; }
    public void setType(String type) { this.type = type; }
    public String getPossibleKeys() { return possibleKeys; }
    public void setPossibleKeys(String possibleKeys) { this.possibleKeys = possibleKeys; }
    public String getKey() { return key; }
    public void setKey(String key) { this.key = key; }
    public String getKeyLen() { return keyLen; }
    public void setKeyLen(String keyLen) { this.keyLen = keyLen; }
    public String getRef() { return ref; }
    public void setRef(String ref) { this.ref = ref; }
    public String getRows() { return rows; }
    public void setRows(String rows) { this.rows = rows; }
    public String getFiltered() { return filtered; }
    public void setFiltered(String filtered) { this.filtered = filtered; }
    public String getExtra() { return extra; }
    public void setExtra(String extra) { this.extra = extra; }
    /*----------------------toString 方法----------------------*/
    @Override
    public String toString() {
        return "MysqlExplain{" +
                "id='" + id + '\'' +
                ", selectType='" + selectType + '\'' +
                ", table='" + table + '\'' +
                ", partitions='" + partitions + '\'' +
                ", type='" + type + '\'' +
                ", possibleKeys='" + possibleKeys + '\'' +
                ", key='" + key + '\'' +
                ", keyLen='" + keyLen + '\'' +
                ", ref='" + ref + '\'' +
                ", rows='" + rows + '\'' +
                ", filtered='" + filtered + '\'' +
                ", extra='" + extra + '\'' +
                '}';
    }
}
